package com.budwk.app.sqfw.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * 用火用电情况
 */
@Getter
public enum FireElectricityUsageEnum {

    ALL(1, "全部"),
    ELECTRICITY(2, "用电"),
    PIPELINE_GAS(3, "管道燃气"),
    LIQUE_GAS(4, "液化石油气"),
    URBAN_GAS(5, "城镇燃气用二甲醚");

    private Integer code;

    private String name;

    FireElectricityUsageEnum(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public static List<String> listNames() {
        return Arrays.stream(values()).map(FireElectricityUsageEnum::getName).collect(Collectors.toList());
    }
}
